package com.jinxiangyang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jinxiangyang.domain.UserInfo;
import com.jinxiangyang.domain.vo.UserMapVo;
import com.jinxiangyang.domain.vo.UserTypeAmountVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author jinxiangyang
 * @since 2023-08-12
 */
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {
    /**
     * 通过用户名查询用户
     *
     * @param userName 用户名
     * @return 用户对象信息
     */
    public UserInfo selectUserByUserName(String userName);

    Set<String> selectPermsByUserId(Long userid);

    List<UserTypeAmountVo> getUserType();

    List<UserMapVo> getUserMap();

}
